/* ************************************************************************

   Copyright:

   License:

   Authors: SALMON Charles

************************************************************************ */

qx.Class.define("bip.services.ServiceState",
{ 
	extend: qx.core.Object,
	
  construct : function(state, model)
  {
    this.base(arguments);
    this.setState(state);
    this.setModel(model);
  },
  
  properties : {
  	state : {
			check : [ "running", "ok", "error", "ready" ],
			init : "ready",
			event : "changeState"
		},
		
		model : {
			nullable: true
		} 
  }
});